var __extends =
    (this && this.__extends) ||
    (function () {
      var t = function (e, l) {
        return (t =
          Object.setPrototypeOf ||
          ({ __proto__: [] } instanceof Array &&
            function (t, e) {
              t.__proto__ = e;
            }) ||
          function (t, e) {
            for (var l in e)
              Object.prototype.hasOwnProperty.call(e, l) && (t[l] = e[l]);
          })(e, l);
      };
      return function (e, l) {
        function n() {
          this.constructor = e;
        }
        if ("function" != typeof l && null !== l)
          throw new TypeError(
            "Class extends value " + String(l) + " is not a constructor or null"
          );
        t(e, l),
          (e.prototype =
            null === l
              ? Object.create(l)
              : ((n.prototype = l.prototype), new n()));
      };
    })(),
  AXTalentDetailDialog = (function (t) {
    function e() {
      var e = t.call(this) || this;
      return e.btn_talent_cancle.on(Laya.Event.CLICK, e, e.close), e;
    }
    return (
      __extends(e, t),
      (e.showTalentDetailDialog = function (t) {
        null == this.talentDetail &&
          ((this.talentDetail = new e()), (this.talentDetail.zOrder = 1e3)),
          this.talentDetail.popup(!0),
          (this.talentDetail.label_pool_title.text = t.name);
        var l;
        1 == t.s
          ? (l = "国士")
          : 2 == t.s
          ? (l = "将才")
          : 3 == t.s
          ? (l = "英才")
          : 4 == t.s && (l = "常人"),
          (this.talentDetail.label_talent_touxian.text = l),
          (this.talentDetail.label_talent_czcz.text = t.czl),
          (this.talentDetail.label_talent_qxcz.text = t.hp),
          (this.talentDetail.label_talent_jlcz.text = t.mp),
          (this.talentDetail.label_talent_gjcz.text = t.ap),
          (this.talentDetail.label_talent_sdcz.text = t.sp);
      }),
      (e.close = function () {
        this.talentDetail && this.talentDetail.removeSelf();
      }),
      e
    );
  })(ui.SubSquareController.AXTalentDetailDialogUI);
